package com.try01;

import java.io.File;

/**
 * Created by ztc on 15-11-14.
 */
public class getFileList extends Thread {
    File CurrentDirectory;
    public getFileList(File f){
        this.CurrentDirectory=f;
    }

    public void run(){
        File[] cd=CurrentDirectory.listFiles(tools.myFilenameFilter());
        for(int i=0;i<cd.length;i++){
           // System.out.println(cd[i]);
            tools.addFile(cd[i]);
        }
    }
}
